package cate.common.table.activity.treasure.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class TreasureExchangeRow extends ERow {
    @NoteField("奖励")
    public String rewardStr;

    @NoteField("兑换消耗道具")
    public String consumeStr;

    @NoteField("兑换次数")
    public int limitTimes;
    @NoteField("刷新类型")
    public int refreshType;

    @NoteField("配置ID")
    public int configId;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
        this.rewardStr = xrw.getString("奖励");
        this.consumeStr = xrw.getString("兑换消耗道具");
        this.limitTimes = xrw.getInteger("兑换次数", 1);
        this.refreshType = xrw.getInteger("刷新类型");
        this.configId = xrw.getInteger("配置ID");
    }
}
